﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;

namespace ExpenseSystem.Model
{
    [TableName("SYS_ROLEMODULE")]
    public class RoleModuleModel : SystemModel
    {
        private long _roleid;
        private long _moduleid;
        private string _action;
        private bool _exe;
        public virtual long RoleId
        {
            get { return _roleid; }
            set
            {
                if (_roleid == value)
                    return;
                _roleid = value;
                if (!PropertyUpdated.Contains("RoleId"))
                    PropertyUpdated.Add("RoleId");
            }
        }

        public virtual long ModuleId
        {
            get { return _moduleid; }
            set
            {
                if (_moduleid == value)
                    return;
                _moduleid = value;
                if (!PropertyUpdated.Contains("ModuleId"))
                    PropertyUpdated.Add("ModuleId");
            }
        }
        public virtual bool Exe
        {
            get { return _exe; }
            set
            {
                if (_exe == value)
                    return;
                _exe = value;
                if (!PropertyUpdated.Contains("Exe"))
                    PropertyUpdated.Add("Exe");
            }
        }
        public virtual string Action
        {
            get { return _action; }
            set
            {
                if (_action == value)
                    return;
                _action = value;
                if (!PropertyUpdated.Contains("Action"))
                    PropertyUpdated.Add("Action");
            }
        }
    }
}
